#ifndef APP3DCONF_H
#define APP3DCONF_H

#include <QScopedPointer>
#include <QMutex>

namespace sys {

/**
 * @brief The SelectModel enum
 */
enum SelectModel{
    ENUM_DEFAULT = 0,
    ENUM_PONIT,
    ENUM_EDGE,
    ENUM_FACE
};

/**
 * @brief The ControlObject enum
 * @details 枚举选择的模式
 */
enum ControlObject{
    ENUM_ROBOT = 0,
    ENUM_MACHINE,
    ENUM_TCP
};

class SysConf
{
public:
    static SysConf* GetInstance(){
        static QMutex mutex;
        static QScopedPointer<SysConf> inst;
        if (Q_UNLIKELY(!inst)) {
            mutex.lock();
            if (!inst) {
                inst.reset(new SysConf);
            }
            mutex.unlock();
        }
        return inst.data();
    }


public:
    SelectModel curModel;   // 默认的选择模式
};



}

#endif // APP3DCONF_H
